/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.musictalk.model.business;

import com.musictalk.message.model.*;
import com.musictalk.model.connect.ClientConn;

/**
 *
 * @author AIDEN
 */
public class LoginCheck {

    private LoginUser myUser;

    public boolean checkUser(Object u){
        System.out.println("check"+u);
        ClientConn conn = new ClientConn();
        boolean res = conn.sendLoginInfo(u);
        this.myUser = conn.getMyUser();
        return res;
    }

    public LoginUser getMyUser() {
        return myUser;
    }
}
